package com.dingding.dao.usermangerdao;

import java.util.List;

import com.dingding.bean.databean.request.ReqCoupon;
import com.dingding.bean.databean.request.ReqUserLoginByNum;
import com.dingding.bean.databean.request.ReqUserRegister;
import com.dingding.bean.databean.response.ResCoupon;
import com.dingding.bean.databean.response.ResGetUserWallet;
import com.dingding.bean.entity.Useraccount;
import com.dingding.dao.basedao.IBaseDao;

public interface IUserAccountDao extends IBaseDao<Useraccount> {

	/**
	 * @Title: setResGetUserWallet
	 * @Description: 设置响应bean的字段
	 * @param obj
	 *            数据库查询出来的Object[]数组
	 * @param resUserWallet
	 *            响应信息封装的bean
	 * @author zhaochenguang
	 * @return boolean 操作是否成功 true：成功 false：失败
	 * @throws
	 */
	public void setResGetUserWallet(List<Object[]> obj,
			ResGetUserWallet resUserWallet);

	
	/**
	 * @Title: saveUserAccount
	 * @Description: 保存到用户账户表
	 * @param reqUserRegister -用户注册请求bean 
	 * @param  userAccountId  -账户id
	 * @param  userLoginId  -登录id
	 * @param @return
	 * @author Li Yi
	 * @return
	 * @throws
	 */
	public void saveUserAccount(ReqUserRegister reqUserRegister,
			String userAccountId,String userLoginId);   
	
	/**
	 * @Title: getCouponList 
	 * @Description: 根据用户Id获取出行券列表
	 * @param reqCoupon
	 * @author YHQ
	 * @return List<ResCoupon>    返回类型 
	 * @throws
	 */
	public List<ResCoupon> getCouponList(ReqCoupon reqCoupon);
	
	/**
	 * @Title: getResCoupon 
	 * @Description: 根据用户Id获取优惠券信息
	 * @param userId 用户Id
	 * @author YHQ
	 * @return ResCoupon    返回类型 
	 */
	public ResCoupon getResCoupon(String userId);
	
	
	
	/**
	 * @Title: saveUserAccountByNum @Description: 保存到用户账户表 @param
	 *         reqUserLoginByNum -用户注册请求bean @param userAccountId -账户id @param
	 *         userLoginId -登录id @param @return @author Li Yi @return @throws
	 */
	public void saveUserAccountByNum(ReqUserLoginByNum reqUserLoginByNum, String userAccountId, String userLoginId);
}
